package de.tum.in.msspp.graph;

public class Edge {

	int id;
	Node nodeA;
	Node nodeB;
	
	double weight;
	String tags;
	
	public Edge(){
		super();
	}
	
	/**
	 * 
	 * @param id - unique id in graph
	 * @param nodeA - Node connected
	 * @param nodeB - Node connected
	 * @param weight - weight of the edge
	 * @param tags - custom tags
	 */
	public Edge(int id, Node nodeA, Node nodeB, double weight, String tags) {
		super();
		this.id = id;
		this.nodeA = nodeA;
		this.nodeB = nodeB;
		this.weight = weight;
		this.tags = tags;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Node getNodeA() {
		return nodeA;
	}

	public void setNodeA(Node nodeA) {
		this.nodeA = nodeA;
	}

	public Node getNodeB() {
		return nodeB;
	}

	public void setNodeB(Node nodeB) {
		this.nodeB = nodeB;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}
}
